<?php
class Enregistrement {
	private $citoyen;
	private $nom;
	
	public function __construct($nom, $cito=null) {
		$this->nom=$nom;
		
		$this->citoyen=$cito;
		
	}
	
	public function __toString() {
		$str="Enregistrement [ Nom: ".$this->nom."\n\tCitoyen: ".$this->citoyeni->getNom()."]";
		$str.="\n";
		return $str;
	}
	
	public function setCitoyen($cito) {
		$this->citoyen=$cito;
	}
	
	public function getCitoyen() {
		return $this->citoyen;
	}
}
?>
